import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/recomment/rtstyle'
  },
  
  {
    path: '/conent',
    name: 'Conent',
    component: () => import(/* webpackChunkName: "about" */ '../views/Conent.vue'),
    
  },
  {
    path: '/recomment',
    name: 'Recomment',
    component: () => import(/* webpackChunkName: "about" */ '../views/Recomment.vue'),
    children:[
      {
        path: '/recomment/rtstyle',
        name:'Gengxin',
        component: () => import(/* webpackChunkName: "about" */ '../views/recomment/Gengxin.vue')
      },
      {
        path: '/recomment/songlist',
        name:'Songlist',
        component: () => import(/* webpackChunkName: "about" */ '../views/recomment/Songlist.vue')
      },
      {
        path: '/recomment/zhubo',
        name:'Zhubo',
        component: () => import(/* webpackChunkName: "about" */ '../views/recomment/Zhubo.vue')
      },
      {
        path: '/recomment/phang',
        name:'Phang',
        component: () => import(/* webpackChunkName: "about" */ '../views/recomment/Phang.vue')
      },
      {
        path: '/recomment/singer',
        name:'Singer',
        component: () => import(/* webpackChunkName: "about" */ '../views/recomment/Singer.vue')
      },
      {
        path: '/recomment/newmusic',
        name:'Newmusic',
        component: () => import(/* webpackChunkName: "about" */ '../views/recomment/Newmusic.vue')
      },

    ]
    
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
